package com.lzp.common.batch;

import com.lzp.entity.WechatBill;
import org.springframework.batch.core.ItemProcessListener;

import java.util.zip.ZipFile;

/**
 * @author lzp
 * @version 1.0.0
 * @date 2022/5/19 20:34:46
 * @apiNote
 */
public class ZipToModelProcessor implements ItemProcessListener<ZipFile, WechatBill> {

    @Override
    public void beforeProcess(ZipFile zipFile) {
        System.out.println("这里是读取zip前的操作");
    }

    @Override
    public void afterProcess(ZipFile zipFile, WechatBill wechatBill) {

    }

    @Override
    public void onProcessError(ZipFile zipFile, Exception e) {

    }
}
